import xlwt

# 1.workbook
workbook = xlwt.Workbook()

# 2.sheet
sheet1 = workbook.add_sheet('sheet1',cell_overwrite_ok=True)
sheet2 = workbook.add_sheet('sheet2',cell_overwrite_ok=True)

# 3.向sheet页中写入数据
sheet2.write(1,2,'bbbbbbbbbbbbb') # 向1行2列写入值 0 0为开始

# 4.样式
# 字体
font = xlwt.Font()
font.name = 'Times New Roman'
font.bold = True
# 样式
style = xlwt.XFStyle()
style.font = font
# 使用
sheet1.write(0,1,'some bold Times text',style)

# 5.保存
workbook.save(u'../a_datas/workbook_xlwt.xls')